class Person {
    private String name;    //姓名
    private String role;    //身份
    private String subject; //教学科目

    public Person(String name, String role) {
        this.name = name;
        this.role = role;
    }

    public Person(String name, String role, String subject) {

        this.name = name;
        this.role = role;
        this.subject = subject;
    }

    public void print() {
        System.out.print("姓名: " + name + "");
        System.out.print("身份:"+ role+"");
        System.out.print("教学科目" + subject);
    }
}
